package com.yantong.mapper;

import com.yantong.pojo.ListMessageParams;
import com.yantong.pojo.Message;
import com.yantong.pojo.MessageExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface MessageMapper {
    long countByExample(MessageExample example);

    int deleteByExample(MessageExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Message record);

    int insertSelective(Message record);

    List<Message> selectByExample(MessageExample example);

    Message selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Message record, @Param("example") MessageExample example);

    int updateByExample(@Param("record") Message record, @Param("example") MessageExample example);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    int countByParams(ListMessageParams params);

    int countByParamsBack(ListMessageParams params);

    List<Message> listByParams(ListMessageParams params, RowBounds rowBounds);

    List<Message> listByParams(ListMessageParams params);

    List<Message> listByParamsBack(ListMessageParams params, RowBounds rowBounds);

    int addMessageBack(Message message);

    Message getMessageBackPrimaryKey(Long id);

    int updateMessageBack(Message message);

    int deleteMessageBack(Long id);

}